package io.dbw.modules.business.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author lxc
 * @date 2024-03-30 16:55:49
 */
@Data
@TableName("sys_borrow")
@Api(tags = "借书管理")
public class SysBorrowEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId
	@ApiModelProperty(value = "ID")
	private Long id;

	@ApiModelProperty(value = "图书ID")
	@NotNull(message = "图书ID不能为空")
	private Long bookId;

	@NotNull(message = "借书人ID不能为空")
	@ApiModelProperty(value = "借书人ID")
	private Long userId;

	@ApiModelProperty(value = "是否还书:Y:是;N:否")
	private String stillFlag;

	@ApiModelProperty(value = "创建者ID",hidden = true)
	private Long createBy;

	@ApiModelProperty(value = "创建时间",hidden = true)
	private Date createTime;

	@ApiModelProperty(value = "修改人",hidden = true)
	private Long updateBy;

	@ApiModelProperty(value = "修改时间",hidden = true)
	private Date updateTime;


}
